.class Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;
.super Ljava/lang/Thread;
.source "SimplePopNoteEditor.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "q"
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;


# direct methods
.method private constructor <init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$a;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 9

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->j(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->q(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/Object;

    move-result-object v0

    monitor-enter v0

    .line 3
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->r(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->r(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->length()I

    move-result v2

    const/4 v3, 0x0

    invoke-virtual {v1, v3, v2}, Ljava/lang/StringBuilder;->delete(II)Ljava/lang/StringBuilder;

    .line 4
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    new-instance v2, Lcom/estrongs/android/pop/app/editor/b;

    iget-object v4, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v4}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->c(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/content/Context;

    move-result-object v4

    iget-object v5, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v5}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->s(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/io/File;

    move-result-object v5

    iget-object v6, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v6}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->h(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/String;

    move-result-object v6

    invoke-direct {v2, v4, v5, v6}, Lcom/estrongs/android/pop/app/editor/b;-><init>(Landroid/content/Context;Ljava/io/File;Ljava/lang/String;)V

    invoke-static {v1, v2}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->a(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Lcom/estrongs/android/pop/app/editor/b;)Lcom/estrongs/android/pop/app/editor/b;

    const/16 v1, 0x1000

    new-array v1, v1, [C

    .line 5
    iget-object v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->w(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/e;

    move-result-object v2

    iget-object v4, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v4}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->t(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I

    move-result v4

    const/4 v5, 0x3

    sub-int/2addr v4, v5

    const/4 v6, 0x1

    sub-int/2addr v4, v6

    invoke-virtual {v2, v4}, Lcom/estrongs/android/pop/app/editor/e;->a(I)Lcom/estrongs/android/pop/app/editor/e$a;

    move-result-object v2
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v2, :cond_0

    .line 6
    :try_start_1
    iget-object v4, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v4}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/b;

    move-result-object v4

    iget-wide v7, v2, Lcom/estrongs/android/pop/app/editor/e$a;->b:J

    invoke-virtual {v4, v7, v8}, Lcom/estrongs/android/pop/app/editor/b;->b(J)V

    .line 7
    iget v2, v2, Lcom/estrongs/android/pop/app/editor/e$a;->a:I
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catch_0
    move-exception v2

    .line 8
    :try_start_2
    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V

    :cond_0
    const/4 v2, 0x0

    .line 9
    :goto_0
    iget-object v4, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v4}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->t(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I

    move-result v4

    sub-int/2addr v4, v5

    add-int/2addr v2, v6

    if-le v4, v2, :cond_1

    iget-object v4, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v4}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/b;

    move-result-object v4

    invoke-virtual {v4, v1}, Ljava/io/Reader;->read([C)I

    move-result v4

    if-lez v4, :cond_1

    goto :goto_0

    .line 10
    :cond_1
    iget-object v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->v(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)I

    const/4 v2, 0x0

    :goto_1
    if-ge v2, v5, :cond_3

    .line 11
    iget-object v4, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v4}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->m(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/b;

    move-result-object v4

    invoke-virtual {v4, v1}, Ljava/io/Reader;->read([C)I

    move-result v4

    if-gez v4, :cond_2

    goto :goto_2

    .line 12
    :cond_2
    iget-object v7, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v7}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->r(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v1, v3, v4}, Ljava/lang/StringBuilder;->append([CII)Ljava/lang/StringBuilder;

    add-int/lit8 v2, v2, 0x1

    goto :goto_1

    .line 13
    :cond_3
    :goto_2
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/os/Handler;

    move-result-object v1

    invoke-virtual {v1, v6}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v1

    .line 14
    iget-object v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->r(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 15
    new-instance v4, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;

    iget-object v5, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    iget-object v6, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    iget-object v7, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v7}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->a(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Lcom/estrongs/android/pop/app/editor/ReaderTextView;

    move-result-object v7

    invoke-static {v6, v7, v2}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->a(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Lcom/estrongs/android/pop/app/editor/ReaderTextView;Ljava/lang/String;)I

    move-result v6

    invoke-direct {v4, v5, v2, v3, v6}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$v;-><init>(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;Ljava/lang/String;II)V

    .line 16
    iput-object v4, v1, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 17
    iget-object v2, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->x(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)Landroid/os/Handler;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_3

    :catchall_0
    move-exception v1

    goto :goto_4

    .line 18
    :catch_1
    :try_start_3
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    const v2, 0x7f110734

    invoke-static {v1, v2}, Lcom/estrongs/android/pop/utils/i;->b(Landroid/content/Context;I)V

    .line 19
    :goto_3
    monitor-exit v0
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    .line 20
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor$q;->a:Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;->y(Lcom/estrongs/android/pop/app/editor/SimplePopNoteEditor;)V

    return-void

    .line 21
    :goto_4
    :try_start_4
    monitor-exit v0
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    goto :goto_6

    :goto_5
    throw v1

    :goto_6
    goto :goto_5
.end method
